package com.jcl.recruit.channel.logic;

import com.jcl.recruit.channel.mapper.ChannelNetMapper;
import com.jcl.recruit.channel.model.ChannelNet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName ChannelNetLogic
 * @Description TODO
 * @Author yyliu
 * @Date 2018/9/11 17:08
 * @Version 1.0
 **/
@Component
public class ChannelNetLogic implements ChannelNetMapper {

    @Autowired
    private ChannelNetMapper channelNetMapper;

    @Override
    public List<ChannelNet> selectList(String corpCode, String userId) {
        return channelNetMapper.selectList(corpCode, userId);
    }

    @Override
    public ChannelNet findOne(String corpCode, Integer id) {
        return channelNetMapper.findOne(corpCode, id);
    }

    @Override
    public int addChannelNet(ChannelNet channelNet) {
        return channelNetMapper.addChannelNet(channelNet);
    }

    @Override
    public int updateChannelNet(ChannelNet channelNet) {
        return channelNetMapper.updateChannelNet(channelNet);
    }

    @Override
    public int deleteChannelNet(String corpCode, Integer id, Integer status) {
        return channelNetMapper.deleteChannelNet(corpCode, id, status);
    }

    @Override
    public List<ChannelNet> findList(String corpCode, String channelType) {
        return channelNetMapper.findList(corpCode, channelType);
    }
}
